home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 237 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  990 b 

  1. Path: sdg.cc.iastate.edu!graphix
  2. From: graphix@iastate.edu (Kent A Vander Velden)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Determining Program Memory Usage
  5. Date: 3 Jan 96 15:28:03 GMT
  6. Organization: Iowa State University, Ames, Iowa
  7. Message-ID: <graphix.820682883@sdg.cc.iastate.edu>
  8. References: <4c99rv$qph@netnews.upenn.edu>
  9. NNTP-Posting-Host: sdg.cc.iastate.edu
  10.  
  11. In <4c99rv$qph@netnews.upenn.edu> aaron@ccat.sas.upenn.edu (Aaron Pawlyk) writes:
  12.  
  13. >Hello.  I've scowered a few reference manuals and some programmers for a
  14. >C function that will return the memory used by the program it is called within.
  15.  
  16. >I'm just looking for some code or a function that'll return memory currently
  17. >used by a program.  Any references to any code or any quick examples of how
  18. >to do this would be appreciated.
  19.  
  20. >Lessee.  System information.  Linux (Slackware).  Kernel 1.2.11.
  21.  
  22. >Running GCC 2.5.6 (or about there...)
  23.  
  24. >Aaron Pawlyk
  25.  
  26.   Will getrusage() work for you?
  27.  
  28. -- 
  29. Kent Vander Velden
  30. graphix@iastate.edu
  31.  
  32.